<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Picture-Manager: SingletonBase&lt; TType &gt; Class Template Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">Picture-Manager
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.2 -->
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('class_singleton_base.html','');});
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="#pro-methods">Protected Member Functions</a> &#124;
<a href="class_singleton_base-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">SingletonBase&lt; TType &gt; Class Template Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Base class to implement the singleton pattern.  
 <a href="class_singleton_base.html#details">More...</a></p>

<p><code>#include &lt;SingletonBase.h&gt;</code></p>
<div class="dynheader">
Inheritance diagram for SingletonBase&lt; TType &gt;:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_singleton_base.png" usemap="#SingletonBase&lt; TType &gt;_map" alt=""/>
  <map id="SingletonBase&lt; TType &gt;_map" name="SingletonBase&lt; TType &gt;_map">
<area href="class_object.html" title="Common Baseclass for all other classes." alt="Object" shape="rect" coords="0,0,151,24"/>
</map>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:a6cef22134c9f77c521c2f21c1c41c98b"><td class="memItemLeft" align="right" valign="top">static TType &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_singleton_base.html#a6cef22134c9f77c521c2f21c1c41c98b">getInstance</a> ()</td></tr>
<tr class="memdesc:a6cef22134c9f77c521c2f21c1c41c98b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns an Instance of the class TType.  <a href="#a6cef22134c9f77c521c2f21c1c41c98b"></a><br/></td></tr>
<tr class="separator:a6cef22134c9f77c521c2f21c1c41c98b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_static_methods_class_object"><td colspan="2" onclick="javascript:toggleInherit('pub_static_methods_class_object')"><img src="closed.png" alt="-"/>&#160;Static Public Member Functions inherited from <a class="el" href="class_object.html">Object</a></td></tr>
<tr class="memitem:a86a84ed2d1207e5f8827165ac2941106 inherit pub_static_methods_class_object"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_object.html#a86a84ed2d1207e5f8827165ac2941106">deleteObject</a> (<a class="el" href="class_object.html">Object</a> *obj)</td></tr>
<tr class="memdesc:a86a84ed2d1207e5f8827165ac2941106 inherit pub_static_methods_class_object"><td class="mdescLeft">&#160;</td><td class="mdescRight">Frees the memory used by obj.  <a href="#a86a84ed2d1207e5f8827165ac2941106"></a><br/></td></tr>
<tr class="separator:a86a84ed2d1207e5f8827165ac2941106 inherit pub_static_methods_class_object"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr class="memitem:a4a676de65f9f284c8affafd8d6c9502b"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_singleton_base.html#a4a676de65f9f284c8affafd8d6c9502b">SingletonBase</a> ()</td></tr>
<tr class="memdesc:a4a676de65f9f284c8affafd8d6c9502b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor of Singletonbase.  <a href="#a4a676de65f9f284c8affafd8d6c9502b"></a><br/></td></tr>
<tr class="separator:a4a676de65f9f284c8affafd8d6c9502b"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="inherited"></a>
Additional Inherited Members</h2></td></tr>
<tr class="inherit_header pub_methods_class_object"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_class_object')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="class_object.html">Object</a></td></tr>
<tr class="memitem:aa3e791419d84c4c346ef9499513b8e00 inherit pub_methods_class_object"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_object.html#aa3e791419d84c4c346ef9499513b8e00">~Object</a> ()</td></tr>
<tr class="memdesc:aa3e791419d84c4c346ef9499513b8e00 inherit pub_methods_class_object"><td class="mdescLeft">&#160;</td><td class="mdescRight">DTor of the <a class="el" href="class_object.html" title="Common Baseclass for all other classes.">Object</a> class.  <a href="#aa3e791419d84c4c346ef9499513b8e00"></a><br/></td></tr>
<tr class="separator:aa3e791419d84c4c346ef9499513b8e00 inherit pub_methods_class_object"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><h3>template&lt;typename TType&gt;<br/>
class SingletonBase&lt; TType &gt;</h3>

<p>Base class to implement the singleton pattern. </p>
<p><a class="el" href="class_singleton_base.html" title="Base class to implement the singleton pattern.">SingletonBase</a> is a template Based class which implements the method <a class="el" href="class_singleton_base.html#a6cef22134c9f77c521c2f21c1c41c98b" title="Returns an Instance of the class TType.">getInstance()</a> for the derived classes and also prevents the user from copying or assigning Singleton classes. </p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a4a676de65f9f284c8affafd8d6c9502b"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename TType&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_singleton_base.html">SingletonBase</a>&lt; TType &gt;::<a class="el" href="class_singleton_base.html">SingletonBase</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Constructor of Singletonbase. </p>
<p>hide the constructor so that no object can be created except with <a class="el" href="class_singleton_base.html#a6cef22134c9f77c521c2f21c1c41c98b" title="Returns an Instance of the class TType.">getInstance()</a> </p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="a6cef22134c9f77c521c2f21c1c41c98b"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename TType&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static TType&amp; <a class="el" href="class_singleton_base.html">SingletonBase</a>&lt; TType &gt;::getInstance </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns an Instance of the class TType. </p>
<p>The Function <a class="el" href="class_singleton_base.html#a6cef22134c9f77c521c2f21c1c41c98b" title="Returns an Instance of the class TType.">getInstance()</a> returns an object of type TType. This function is the only way to get an instance of a class extending the class <a class="el" href="class_singleton_base.html" title="Base class to implement the singleton pattern.">SingletonBase</a> </p>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="class_singleton_base.html">SingletonBase</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.2 </li>
  </ul>
</div>
</body>
</html>
